package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 生成教学大纲
 * @TableName t_generate_teach
 */
@TableName(value ="t_generate_teach")
@Data
public class GenerateTeach implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 大纲标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 创建用户id
     */
    @TableField(value = "userId")
    private Long userId;
    /**
     * 文件url
     */
    @TableField(value = "fileUrl")
    private String fileUrl;
    /**
     * 上传文件的内容
     */
    @TableField(value = "uploadContent")
    private String uploadContent;

    /**
     * 教学大纲正文（富文本)
     */
    @TableField(value = "content")
    private String content;

    /**
     * 状态（1草稿/2已发布/3下架/4等待中/5生成中/6失败
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 执行信息
     */
    @TableField(value = "execMessage")
    private String execMessage;
    /**
     * 发布时间
     */
    @TableField(value = "publishTime")
    private Date publishTime;

    /**
     * 修改时间
     */
    @TableField(value = "editTime")
    private Date editTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}